From d3beea2c3db7f456882b9197460818cd87a14965 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 27 May 2017 17:31:05 +0200 Subject: [PATCH] frame: Fix child allocation Don't add the parent's allocation from gtk_widget_get_allocation --- gtk/gtkframe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index 2779900114..c2f6cd49ea 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -695,8 +695,8 @@ gtk_frame_real_compute_child_allocation (GtkFrame *frame, else height = 0; - child_allocation->x = allocation.x; - child_allocation->y = allocation.y + height; + child_allocation->x = 0; + child_allocation->y = height; child_allocation->width = MAX (1, allocation.width); child_allocation->height = MAX (1, allocation.height - height); } -- 2.30.2